/* 导出页面需要的信息 */
export const Page = {
  /* 表格展示部分 */
  tableHeader: [
    {
      title: "入库记录时间",
      value: "stock_in_time",
      width: "150px",
      IsUpdata: true,
    },
    {
      title: "供应商名字",
      value: "supplier_name",
      width: "180px",
    },
    {
      title: "仓库类型",
      value: "warehouse_name",
      width: "120px",
    },
    {
      title: "SKU",
      value: "sku",
      width: "120px",
    },
    {
      title: "商品名称",
      value: "sku_name",
      width: "130px",
    },
    {
      title: "退货订单号",
      value: "return_order_id",
      width: "140px",
    },
    {
      title: "退货数量",
      value: "retrun_sku_num",
      width: "120px",
    },
    {
      title: "退货货品单价",
      value: "return_sku_unit_price",
      width: "140px",
    },
    {
      title: "退货入库总价",
      value: "return_stock_in_total_price",
      width: "140px",
    },
    {
      title: "退货状态",
      value: "return_status",
      width: "150px",
    },
    {
      title: "退货签收时间",
      value: "return_ship_time",
      width: "140px",
    },
    {
      title: "退货签收人",
      value: "return_signer",
      width: "140px",
    },
    {
      title: "退货照片",
      value: "return_pic",
      width: "150px",
    },
    {
      title: "新订单发货合计",
      value: "new_order_ship_total",
      width: "150px",
    },
    {
      title: "换货发货合计",
      value: "exchange_sku_ship_total",
      width: "150px",
    },
    {
      title: "正品库存",
      value: "quality_stock",
      width: "150px",
    },
    {
      title: "残品库存",
      value: "scrap_stock",
      width: "150px",
    },
    {
      title: "正品库货值",
      value: "quality_stock_price",
      width: "150px",
    },
    {
      title: "残品库货值",
      value: "scrap_stock_price",
      width: "150px",
    },
    {
      title: "备注",
      value: "remark",
      width: "160px",
    },
  ],
  /* 弹窗表单 */
  Dialog: {
    /* 新增备货入库弹窗 */
    CreateDialog: {
      DialogTtile: "新增退货入库", // 弹窗标题
      DialogConfirmText: "确认新增", // 弹窗确认按钮文字
      DialogForm: {
        supplier_id: "",
        warehouse_id: "",
        sku: "",
        sku_name: "",
        scrap_first_stock_num: "",
        scrap_first_stock_price: "",
        return_order_id: "",
        retrun_sku_num: "",
        remark: "",
      },
      rules: {
        supplier_id: [
          { required: true, message: "请选择供应商", trigger: "blur" },
        ],
        warehouse_id: [{ required: true, message: "请选择仓库类型", trigger: "blur" }],
        sku: [{ required: true, message: "请选择sku", trigger: "blur" }],
        sku_name: [
          { required: true, message: "请选择sku名称", trigger: "blur" },
        ],
        return_order_id: [
          { required: true, message: "请输入退货订单号", trigger: "blur" },
        ],
        retrun_sku_num: [
          { required: true, message: "请输入退货数量", trigger: "blur" },
        ],
      },
      DialogFormType: [
        {
          name: "供应商",
          value: "supplier_id",
          type: "select",
          placeholder: "请选择供应商",
          options: [],
          required: true,
        },
        {
          name: "仓库类型",
          value: "warehouse_id",
          type: "select",
          required: true,
          options: [],
          placeholder: "请选择仓库类型",
        },
        {
          name: "SKU",
          value: "sku",
          type: "No",
          required: true,
          GetApi: "GetStockSkuList",
          placeholder: "请选择SKU信息",
          Search: true,
          ShowValue: "退货入库选择sku",
          tableHeader: [
            {
              title: "SKU",
              value: "ware_id",
              width: "160px",
            },
            {
              title: "产品名字 ",
              value: "name",
              width: "500px",
            },
          ],
        },
        {
          name: "产品名称",
          value: "sku_name",
          type: "text",
          required: true,
          placeholder: "等待选择sku信息",
        },
        // {
        //   name: "期初残次品数量",
        //   value: "scrap_first_stock_num",
        //   type: "input",
        //   placeholder: "请填写期初残次品数量",
        // },
        // {
        //   name: "期初残次品单价",
        //   value: "scrap_first_stock_price",
        //   type: "input",
        //   placeholder: "请填写期初残次品单价",
        // },
        {
          name: "退货订单号",
          value: "return_order_id",
          type: "input",
          required: true,
          placeholder: "请填写退货订单号",
        },
        {
          name: "退货数量",
          value: "retrun_sku_num",
          type: "input",
          required: true,
          placeholder: "请填写退货数量",
        },
        {
          name: "备注",
          value: "remark",
          type: "input",
          placeholder: "请填写备注",
        },
      ],
    },
    /* 修改备货入库弹窗 */
    UpdataDialog: {
      DialogTtile: "修改退货入库", // 弹窗标题
      DialogConfirmText: "确认修改", // 弹窗确认按钮文字
      DialogForm: {
        supplier_id: "",
        warehouse_id: "",
        sku: "",
        sku_name: "",
        scrap_first_stock_num: "",
        scrap_first_stock_price: "",
        return_order_id: "",
        retrun_sku_num: "",
        remark: "",
      },
      rules: {
        supplier_id: [
          { required: true, message: "请选择供应商", trigger: "blur" },
        ],
        warehouse_id: [{ required: true, message: "请选择仓库类型", trigger: "blur" }],
        sku: [{ required: true, message: "请选择sku", trigger: "blur" }],
        sku_name: [
          { required: true, message: "请选择sku名称", trigger: "blur" },
        ],
        return_order_id: [
          { required: true, message: "请输入退货订单号", trigger: "blur" },
        ],
        retrun_sku_num: [
          { required: true, message: "请输入退货数量", trigger: "blur" },
        ],
      },
      DialogFormType: [
        {
          name: "供应商",
          value: "supplier_id",
          type: "select",
          required: true,
          options: [],
        },
        {
          name: "仓库类型",
          value: "warehouse_id",
          type: "select",
          required: true,
          options: [],
          placeholder: "请选择仓库类型",
        },
        {
          name: "SKU",
          value: "sku",
          type: "No",
          required: true,
          GetApi: "GetStockSkuList",
          placeholder: "请选择SKU信息",
          Search: true,
          ShowValue: "退货入库选择sku",
          tableHeader: [
            {
              title: "SKU",
              value: "ware_id",
              width: "160px",
            },
            {
              title: "产品名字 ",
              value: "name",
              width: "500px",
            },
          ],
        },
        {
          name: "产品名称",
          value: "sku_name",
          type: "text",
          required: true,
          placeholder: "等待选择sku信息",
        },
        // {
        //   name: "期初残次品数量",
        //   value: "scrap_first_stock_num",
        //   type: "input",
        //   placeholder: "请填写期初残次品数量",
        // },
        // {
        //   name: "期初残次品单价",
        //   value: "scrap_first_stock_price",
        //   type: "input",
        //   placeholder: "请填写期初残次品单价",
        // },
        {
          name: "退货订单号",
          value: "return_order_id",
          type: "input",
          required: true,
          placeholder: "请填写退货订单号",
        },
        {
          name: "退货数量",
          value: "retrun_sku_num",
          type: "input",
          required: true,
          placeholder: "请填写退货数量",
        },
        {
          name: "备注",
          value: "remark",
          type: "input",
          placeholder: "请填写备注",
        },
      ],
    },
  },
};
